package ifi.card.main;

import android.content.Intent;
import android.view.KeyEvent;

public abstract class SubScreenActivity extends ScreenActivity{
	
	public void nextScreen() {
//		Intent nextIntent = new Intent(this, MainScreen.class);
//		this.startActivity(nextIntent);
		finish();
	}
	
	@Override
	public boolean onKeyDown(int keyCode, KeyEvent event) {
		if(keyCode==KeyEvent.KEYCODE_BACK) {
			continueMusic = true;
			nextScreen();
			return true;
		}
		else {
			return super.onKeyDown(keyCode, event);
		}
	}
}
